<!--
 * @Author: 1243sd 782012816@qq.com
 * @Date: 2024-03-14 21:45:48
 * @LastEditors: 1243sd 782012816@qq.com
 * @LastEditTime: 2024-03-14 21:45:55
 * @FilePath: \frontend-ykt-admin\detailModule.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div class="container">
    <b-card-new detail>
        
        <div class="btn-wrapper">
          <b-button-new hollow text="返回" @click="handleBack"></b-button-new>
          <b-button-new text="保存" @click="handleSave"></b-button-new>
        </div>
    </b-card-new>
  </div>
</template>
<script>
export default {
  data () {
    return{
      showType: '', // 进入详情类型 0新增 1编辑 2详情
      editPara: {}, // 详情数据
    }
  },
  created() {
    
  },
  mounted () {
    const { showType, id } = this.$route.query
    this.showType = showType
    this.getDetail(id)
  },
  methods: {
    // 获取详情
    getDetail(id) {
      this.$api.member.getDetail(id).then(res => {
        this.editPara = res || {}
      })
    },
    // 返回
    handleBack() {
      this.$router.go(-1)
    },
    // 保存
    handleSave() {

    }
  },
  computed() {
    
  }
}
</script>
<style lang="scss" scoped>

</style>
